#ifndef MHTTP_H
#define MHTTP_H

#include <QWidget>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include "dialog.h"

class MHttp : public QWidget
{
    Q_OBJECT
public:
    explicit MHttp(QWidget *parent = nullptr);

    bool post_sync(QString url,QByteArray &body,QByteArray &replyData);
private:
    QNetworkAccessManager *manager;
};

#endif // MHTTP_H
